#ifndef AST_EXPRESSION_UNARY_OPERATOR_H
#define AST_EXPRESSION_UNARY_OPERATOR_H

#include "../ASTNode.h"

/*
C99 6.5.3
unary-operator: one of
		&	*	+	-	~	!
*/
class UnaryOperator : public ASTNode
{
protected:
	UnaryOperator()
		: ASTNode(ASTNode::unary_operator){};
public:
	UnaryOperator(unsigned char cOp)
		: ASTNode(ASTNode::unary_operator)
		, m_cOp(cOp){};

	virtual ~UnaryOperator(void){};
	
	virtual void			codeGen();

	unsigned char			getOp()const {return m_cOp;}
protected:
	unsigned char			m_cOp;
};


#endif

